
#ifndef __MAP_H__
#define __MAP_H__

#include "Globals.h"

// Functions
void DrawStartPage();
void Clr(int x1, int y1, int x2, int y2);
void DrawMap();
void DrawMapSquare2(char civ, int i, int j, int x, int y);
void DrawMiniMap();
void DrawCity();
void DrawUnit();	
void DrawScreen();
bool MoveUnitCursor(char unit);
bool MoveMainCursor();
void SetCursor(int x, int y);

// Macros
#define ClrGrid(X, Y)  Clr(10*(X - 5*game.qX - 1)+1, 10*(Y - 3*game.qY - 1)+30,  10*(X - 5*game.qX - 1)+9, 10*(Y - 3*game.qY - 1)+38);

//define more key constants
#define _2ND_LEFT		4434
#define _2ND_RIGHT	4440
#define _2ND_UP	  	4433
#define _2ND_DOWN  	4436

#define SHIFT_LEFT 	8530
#define SHIFT_RIGHT 8536
#define SHIFT_UP		8529
#define SHIFT_DOWN	8532

#define DIAMOND_LEFT 	16722
#define DIAMOND_RIGHT 16728
#define DIAMOND_UP		16721
#define DIAMOND_DOWN	16724

#define KEY_HOME     277

#endif